]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
remoteMenu: Add actionGroup accessor
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 13 Jun 2017 02:17:39 +0000 (04:17 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 13 Jul 2017 15:23:54 +0000 (17:23 +0200)
To avoid recreating the app menu unnecessarily, the panel checks
whether the menu's current actionGroup already matches the target
one. However as the menu's actionGroup property is currently private,
the test always fails, whoops.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

js/ui/remoteMenu.js

index 7d7ebbf89e39b14cf0a3a6da8ca515c2c0d535d9..4aee3d7b1fc7bd32d37d6335f64bffea049a65a0 100644 (file)
@@ -192,6 +192,10 @@ const RemoteMenu = new Lang.Class({
                                               _removeItem.bind(null, this));
     },
 
+    get actionGroup() {
+        return this._actionGroup;
+    },
+
     destroy: function() {
         this._tracker.destroy();
         this.parent();